﻿using System;
using bba.framework.infraweb.interfaces.controller;
using Microsoft.Practices.Unity;
using bba.framework.infraweb.interfaces.baseinfra;
using bba.framework.infraweb.infrastructure.utility;


namespace ibba.src.noriskbo.Web.Controls
{
    /// <summary>
    /// Classe reponsável pelo(s) controle(s) do AlertUserControl na MasterPage
    /// </summary>
    public partial class AlertUserControl : System.Web.UI.UserControl
    {
        //Construtor Default
        public AlertUserControl()
        {
            IContextProvider contextProvider = new HttpContextProvider();
            AlertController = contextProvider.GetContainer().Resolve<IAlertControlController>();
        }

        [Dependency]
        public IAlertControlController AlertController { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            AlertController.load(IsPostBack, alertRepeater, this.ViewState, this, itemsAlertsLabel, totalViewAlertUserLabel, limitAlertsLabel);
        }
    }
}
